import request from '@/utils/request';

/**
 * 查询日常转账列表
 * @param query
 * @returns {*}
 */

export const listRczz = (query) => {
  return request({
    url: '/system/rczz/list',
    method: 'get',
    params: query
  });
};

/**
 * 查询日常转账详细
 * @param id
 */
export const getRczz = (id) => {
  return request({
    url: `/system/rczz/getDetail/${id}`,
    method: 'get'
  });
};

/**
 * 新增日常转账
 * @param data
 */
export const addRczz = (data) => {
  return request({
    url: '/system/rczz',
    method: 'post',
    data: data
  });
};

/**
 * 修改日常转账
 * @param data
 */
export const updateRczz = (data) => {
  return request({
    url: '/system/rczz',
    method: 'put',
    data: data
  });
};

/**
 * 删除日常转账
 * @param id
 */
export const delRczz = (id) => {
  return request({
    url: '/system/rczz/' + id,
    method: 'delete'
  });
};

/**
 * 日常转账导出
 * @param data
 */
export const exportRczz = (data) => {
  return request({
    url: 'http://192.168.2.158:8080/system/rczz/export',
    method: 'post',
    data: data
  });
};